<template>
 <el-form>
  <form-item :form-status="dynamicFormItem" :form-state="formState"></form-item>
 </el-form>
</template>

<script setup lang="ts">
import { reactive, watch } from 'vue';
import dynamicFormItem from './components/dynamic-form/DynamicForm';
import FormItem from './components/dynamic-form/FormItem.vue';
import { ElForm } from 'element-plus';

const formState = reactive({});

watch(formState, () => {
  console.log('数据更新了', formState);
})
</script>

<style scoped>
</style>
